package AI.Enemy;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URLClassLoader;

import javax.imageio.ImageIO;

import Main.SpaceGame;

public class Pirate extends Enemy
{
	BufferedImage sprite = null;

	public Pirate(int x, int y, SpaceGame main) 
	{
		super(x, y, main);
		this.x = x;
		this.y = y;
		this.main = main;
		try {
			sprite = ImageIO.read(URLClassLoader.getSystemResource("Resources/"+"Pirate.png"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	@Override
	public void draw(Graphics g) 
	{
		g.drawImage(sprite, x*10, y*10, null);
	}

}
